import { get, post } from '/@/api/request.ts';

export enum Api {
    footerStatistic = '/health-watch/watch/deptStatisticData/listByorgCode',
    mapListApi = '/health-watch/watch/watchDevice/selectDeptMapList',
    getUserListByDeptId = '/health-watch/watch/watchDevice/getUserListByDeptId',
    queryAllStatistics = '/health-watch/watch/watchData/queryAllStatistics',
    // 心率
    queryHeartRateStatistics = '/health-watch/watch/watchData/queryHeartRateStatistics',
    queryHeartRateStatisticsPage = '/health-watch/watch/watchData/queryHeartRateStatisticsPage',
    // 血氧
    queryBloodOxygenStatistics = '/health-watch/watch/watchData/queryBloodOxygenStatistics',
    queryBloodOxygenStatisticsPage = '/health-watch/watch/watchData/queryBloodOxygenStatisticsPage',
    // 压力
    queryStressStatistics = '/health-watch/watch/watchData/queryStressStatistics',
    queryStressStatisticsPage = '/health-watch/watch/watchData/queryStressStatisticsPage',
    // 睡眠
    querySleepStatistics = '/health-watch/watch/watchData/querySleepStatistics',
    querySleepStatisticsPage = '/health-watch/watch/watchData/querySleepStatisticsPage',
    // 体温
    queryBodyTemperatureStat = '/health-watch/watch/watchData/queryBodyTemperatureStat',
    queryBodyTemperatureStatPage = '/health-watch/watch/watchData/queryBodyTemperatureStatPage',
    // 锻炼
    queryExercisePage = '/health-watch/watch/watchData/queryExercisePage',
    // 步数
    queryStepStatistics = '/health-watch/watch/watchData/queryStepStatistics',
    queryStepStatisticsPage = '/health-watch/watch/watchData/queryStepStatisticsPage',
    // 获取是否有数据
    userDataDayByYear = '/health-watch/watch/watchData/userDataDayByYear',
}

/**
 * 底部单行表格
 * @param params
 */
export const footerApi = (params) => get(Api.footerStatistic, params);
export const mapListApi = (params) => get(Api.mapListApi, params);
export const getUserListByDeptId = (params) => get(Api.getUserListByDeptId, params);
export const queryAllStatisticsApi = (params) => get(Api.queryAllStatistics, params);
export const userDataDayByYearApi = (params) => get(Api.userDataDayByYear, params);
// 心率
export const queryHeartRateStatisticsApi = (params: any) => post(Api.queryHeartRateStatistics, params);
export const queryHeartRateStatisticsPageApi = (params: any) => post(Api.queryHeartRateStatisticsPage, params);
// 血氧
export const queryBloodOxygenStatisticsApi = (params: any) => post(Api.queryBloodOxygenStatistics, params);
export const queryBloodOxygenStatisticsPageApi = (params: any) => post(Api.queryBloodOxygenStatisticsPage, params);
// 压力
export const queryStressStatisticsApi = (params: any) => post(Api.queryStressStatistics, params);
export const queryStressStatisticsPageApi = (params: any) => post(Api.queryStressStatisticsPage, params);
// 睡眠
export const querySleepStatisticsApi = (params: any) => post(Api.querySleepStatistics, params);
export const querySleepStatisticsPageApi = (params: any) => post(Api.querySleepStatisticsPage, params);
// 体温
export const queryBodyTemperatureStatApi = (params: any) => post(Api.queryBodyTemperatureStat, params);
export const queryBodyTemperatureStatPageApi = (params: any) => post(Api.queryBodyTemperatureStatPage, params);
// 锻炼
export const queryExercisePageApi = (params: any) => post(Api.queryExercisePage, params);
// 步数
export const queryStepStatisticsApi = (params: any) => post(Api.queryStepStatistics, params);
export const queryStepStatisticsPageApi = (params: any) => post(Api.queryStepStatisticsPage, params);
